/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package chapter5;

class myException extends Exception{}
class Tire{
    void doStuff(){};
}
/**
 *
 * @author Denise Carolina
 */
public class SelfTest16 extends Tire{

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        new SelfTest16().doStuff();
    }

//    @Override
//    void doStuff(){
//        System.out.println(7/0);
//    }

//    void doStuff() throws myException{
//                System.out.println(7/0);
//    }

//    @Override
//    void doStuff() throws RuntimeException{
//                System.out.println(7/0);
//    }

    void doStuff() throws ArithmeticException{
            System.out.println(7/0);
    }

}
